import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/store.js'
import Vant from 'vant';
import 'vant/lib/index.css';

Vue.use(Vant);



Vue.config.productionTip = false
router.beforeEach((to, from, next) => {
  // to和from都是router
  console.log(to.meta.title)
  document.title=to.meta.title
  next()
})
// router.afterEach( (to,from)=> {
// console.log("123456")
// })

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
